﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E7F RID: 3711
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBuffSelectResult : IMessage<RogueBuffSelectResult>, IMessage, IEquatable<RogueBuffSelectResult>, IDeepCloneable<RogueBuffSelectResult>, IBufferMessage
	{
		// Token: 0x17002F0F RID: 12047
		// (get) Token: 0x0600A667 RID: 42599 RVA: 0x001BF994 File Offset: 0x001BDB94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBuffSelectResult> Parser
		{
			get
			{
				return RogueBuffSelectResult._parser;
			}
		}

		// Token: 0x17002F10 RID: 12048
		// (get) Token: 0x0600A668 RID: 42600 RVA: 0x001BF99B File Offset: 0x001BDB9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBuffSelectResultReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F11 RID: 12049
		// (get) Token: 0x0600A669 RID: 42601 RVA: 0x001BF9AD File Offset: 0x001BDBAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBuffSelectResult.Descriptor;
			}
		}

		// Token: 0x0600A66A RID: 42602 RVA: 0x001BF9B4 File Offset: 0x001BDBB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffSelectResult()
		{
		}

		// Token: 0x0600A66B RID: 42603 RVA: 0x001BF9BC File Offset: 0x001BDBBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffSelectResult(RogueBuffSelectResult other) : this()
		{
			this.buffSelectId_ = other.buffSelectId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A66C RID: 42604 RVA: 0x001BF9E1 File Offset: 0x001BDBE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffSelectResult Clone()
		{
			return new RogueBuffSelectResult(this);
		}

		// Token: 0x17002F12 RID: 12050
		// (get) Token: 0x0600A66D RID: 42605 RVA: 0x001BF9E9 File Offset: 0x001BDBE9
		// (set) Token: 0x0600A66E RID: 42606 RVA: 0x001BF9F1 File Offset: 0x001BDBF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffSelectId
		{
			get
			{
				return this.buffSelectId_;
			}
			set
			{
				this.buffSelectId_ = value;
			}
		}

		// Token: 0x0600A66F RID: 42607 RVA: 0x001BF9FA File Offset: 0x001BDBFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBuffSelectResult);
		}

		// Token: 0x0600A670 RID: 42608 RVA: 0x001BFA08 File Offset: 0x001BDC08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBuffSelectResult other)
		{
			return other != null && (other == this || (this.BuffSelectId == other.BuffSelectId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A671 RID: 42609 RVA: 0x001BFA38 File Offset: 0x001BDC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffSelectId != 0U)
			{
				num ^= this.BuffSelectId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A672 RID: 42610 RVA: 0x001BFA77 File Offset: 0x001BDC77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A673 RID: 42611 RVA: 0x001BFA7F File Offset: 0x001BDC7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A674 RID: 42612 RVA: 0x001BFA88 File Offset: 0x001BDC88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffSelectId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.BuffSelectId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A675 RID: 42613 RVA: 0x001BFABC File Offset: 0x001BDCBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffSelectId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffSelectId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A676 RID: 42614 RVA: 0x001BFAFA File Offset: 0x001BDCFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBuffSelectResult other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffSelectId != 0U)
			{
				this.BuffSelectId = other.BuffSelectId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A677 RID: 42615 RVA: 0x001BFB2B File Offset: 0x001BDD2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A678 RID: 42616 RVA: 0x001BFB34 File Offset: 0x001BDD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.BuffSelectId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400438B RID: 17291
		private static readonly MessageParser<RogueBuffSelectResult> _parser = new MessageParser<RogueBuffSelectResult>(() => new RogueBuffSelectResult());

		// Token: 0x0400438C RID: 17292
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400438D RID: 17293
		public const int BuffSelectIdFieldNumber = 4;

		// Token: 0x0400438E RID: 17294
		private uint buffSelectId_;
	}
}
